package com._119yn.host.gst200.properties;

import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@RequiredArgsConstructor
@ConfigurationProperties(prefix = "can-socket")
public class CanSocketProperties {

    private final ServerProperties server;

    @Data
    public static class ServerProperties {
        /**
         * 主机地址
         */
        private String host;

        /**
         * 主机端口
         */
        private int port;
    }
}
